package com.team233.zuccecho.repository;

import com.team233.zuccecho.Bean.Feedback;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface FeedbackRepository extends JpaRepository<Feedback,Integer> {
    @Query(value="select * from feedback where questionnaire_id=?1",nativeQuery = true)
    List<Feedback> findByQuestionnaireId(long questionnaire_id);

    @Query(value="select * from feedback where student_id=?1",nativeQuery = true)
    List<Feedback> findByStuId(long stu_id);
}
